package com.example.basis.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @version 1.0.0
 * @className: MyAMQPConfig
 * @description: 将amqp消息转成json形式发送
 * @author: LiJunYi
 * @create: 2022/8/4 10:29
 */
@Configuration
public class MyAMQPConfig
{
    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
